Skip to content

ConstraintAnalysis: Parse AND operations - #9075

Open
kripken wants to merge 55 commits into
WebAssembly:mainfrom
kripken:c.AND
Open

ConstraintAnalysis: Parse AND operations#9075
kripken wants to merge 55 commits into
WebAssembly:mainfrom
kripken:c.AND

Conversation

@kripken

@kripken kripken commented Sep 4, 2026

Copy link
Copy Markdown
Member

Handles this common code pattern:

(if
  (i32.and (A) (B))
  (then ..

We can apply both A and B in the first arm, and !(A && B) in the second.

Also pattern-match eqz(eqz(..)) as that is the only way to represent != 0
in a nested position (otherwise, just if (local.get) works, which we already
matched).

@kripken
kripken requested a review from tlively September 4, 2026 15:47
@kripken
kripken requested a review from a team as a code owner September 4, 2026 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant